package arr;

import java.util.Scanner;

public class test3IfExistArr {
    public static boolean judge(int[] arr, int num) {
        for (int i : arr) {
            if (arr[i - 1] == num)
                return true;
        }
        return false;
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int[] arr = {1, 2, 3, 4, 5, 6, 7, 8, 9};
        if (judge(arr, num)) {
            System.out.println(num + "存在于arr数组中");
        } else {
            System.out.println(num + "不存在于arr数组中");
        }
    }
}
